{include file="./headStart.tpl"}
<script type="text/javascript">
function getFilterData()
{
  var dataString = "fromDateYear=" + $("select[name='fromDateYear']").val() 
                   + "&fromDateMonth=" + $("select[name='fromDateMonth']").val() + "&fromDateDay=" + $("select[name='fromDateDay']").val() 
                   + "&toDateYear=" + $("select[name='toDateYear']").val() 
                   + "&toDateMonth=" + $("select[name='toDateMonth']").val() + "&toDateDay=" + $("select[name='toDateDay']").val();
  $.ajax({
    type: "GET",
    url:  "smsListAj.php",
    data: dataString,
    success: function(data){ 
      $("#filteredData").html(data);
    }
  });
}
</script>
{include file="./headEnd.tpl"}
<form action="{$smarty.server.PHP_SELF}" name='itemView' method='POST'>
<table border='0' cellpadding='1' cellspacing='2' align='center'>
<tr>
  <td class="table1" align="center" colspan="6"><font style="font-size: 16px"><b> Send SMS Filter Data </b></font></td>
</tr>
<tr>
  <td align="right" class="table2" >Sms Date : </td>
    <td NOWRAP class="table2">
      {html_select_date prefix="fromDate" time="$reportFromDate" start_year="-3" end_year="+1" month_format="%m" field_order="DMY"  day_value_format="%02d"}
    </td>
    <td align="right" class="table2" >To : </td>
    <td NOWRAP class="table2">
      {html_select_date prefix="toDate" time="$reportToDate" start_year="-3" end_year="+1" month_format="%m" field_order="DMY"  day_value_format="%02d"}
    </td>
  <td valign="bottom" >
    <input type="button" name="button" id="goButton" value=" G O... " class="button" onclick="getFilterData();" />
  </td>
<tr>
</table>
<div id="filteredData">
</div>
</form>
{include file="footer.tpl"}